package com.xjoyt.pay.operater.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.xjoyt.pay.operater.auth.po.AccountUser;
import com.xjoyt.pay.operater.dao.UserRepositoryCustom;
import com.xjoyt.pay.repository.Repository;

public interface UserRepository extends Repository<AccountUser>, UserRepositoryCustom {

	Page<AccountUser> findAllByAccountOrPhone(String account, String phone, Pageable pageable);

	AccountUser getUserByPhone(String phone);

	AccountUser getUserByUserName(String userName);

	AccountUser findOneByPhone(String phone);

}
